<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-player-addGold"> <!--  th:object="${player}" -->
			<h3>管理员</h3>
			<input th:name="adminId" th:value="${sysUser.userId}"  type="hidden">
			<div class="form-group">
                 <label class="col-sm-3 control-label">登录名：</label>
                 <div class="col-sm-8">
                     <input readonly="true" th:value="${sysUser.loginName}" class="form-control" type="text">
                 </div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">用户名：</label>
                 <div class="col-sm-8">
                     <input readonly="true" th:value="${sysUser.userName}" class="form-control" type="text">
                 </div>
             </div>
			<h3>用户信息</h3>
			<div class="form-group">
				<label class="col-sm-3 control-label">玩家ID：</label>
				<div class="col-sm-8">
					<input name="playerId" readonly="true" th:value="*{player.playerId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">用户名：</label>
				<div class="col-sm-8">
					<input readonly="true" th:value="${player.userName}" class="form-control" type="text">
				</div>
			</div>
			<br/>
			<div class="form-group">
				<label class="col-sm-3 control-label">金币数量：</label>
				<div class="col-sm-8">
					<input name="goldNum" class="form-control" type="text">
				</div>
			</div>
        </form>
    </div>
    <div th:include="include::footer"></div>
	<script type="text/javascript">
        $("#form-player-addGold").validate({
            rules:{
                goldNum:{
                    required:true
//					,minlength: 5,
//                    maxlength: 20
                },
            }
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(ctx + "jl/player/addGold", $('#form-player-addGold').serialize());
            }
        }
	</script>
</body>
</html>
